import request from '@/utils/request'

// 查询销售退货入库管理列表
export function listSalesReturnInbound(query) {
  return request({
    url: '/InboundManagement/salesReturnInbound/list',
    method: 'get',
    params: query
  })
}

// 查询销售退货入库管理详细
export function getSalesReturnInbound(salesId) {
  return request({
    url: '/InboundManagement/salesReturnInbound/' + salesId,
    method: 'get'
  })
}

// 新增销售退货入库管理
export function addSalesReturnInbound(data) {
  return request({
    url: '/InboundManagement/salesReturnInbound',
    method: 'post',
    data: data
  })
}

// 修改销售退货入库管理
export function updateSalesReturnInbound(data) {
  return request({
    url: '/InboundManagement/salesReturnInbound',
    method: 'put',
    data: data
  })
}

// 删除销售退货入库管理
export function delSalesReturnInbound(salesId) {
  return request({
    url: '/InboundManagement/salesReturnInbound/' + salesId,
    method: 'delete'
  })
}
